
import { IsNotEmpty } from 'class-validator';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';

export class CreateResoruceDto {

    @IsNotEmpty()
    @ApiProperty({description:'视频id'})
    videoId: string;

    @IsNotEmpty()
    @ApiProperty({description:'播放地址'})
    url: string;

    @IsNotEmpty()
    @ApiProperty({description:'资源类型'})
    sourceType: string;

    sort:number
}   